package com.linearList;

import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

/**
 * @Author: linKe
 * @Date: 2022/1/1 0:50
 * @FileName: DoubleLinkedListCycleTest
 * @version: 1.0
 * @Description: 描述
 */
public class DoubleLinkedListCycleTest {

    DoubleLinkedListCycle<Integer> list;

    @Before
    public void setUp() throws Exception {
        Integer [] arr = {1,3,5,7,9};
        list = new DoubleLinkedListCycle<>(arr);
        System.out.println(list);
        //没有赋值 全是头结点的循环依赖
        //  修改最后的 p.next的循环指向后
        //  com.linearList.DoubleLinkedListCycle@2b05039f
    }

    @Test
    public void init() {
    }

    @Test
    public void get() {
        for (int i = 1; i < 6; i++) {
            System.out.println(list.get(i));
        }

    }

    @Test
    public void remove() {
    }

    @Test
    public void set() {
    }

    @Test
    public void search() {
    }

    @Test
    public void insert() {
    }

    @Test
    public void size() {
    }

    @Test
    public void testEquals() {
    }
}